# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=tiled
pkgver=1.6.0
pkgrel=0
pkgdesc="powerful tile map editor"
url="http://mapeditor.org"
arch="all"
license="Apache-2.0 AND BSD-2-Clause AND GPL-2.0-only"
makedepends="qt5-qttools-dev qt5-qtdeclarative-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bjorn/tiled/archive/v$pkgver.tar.gz
	patch-main.cpp.patch
	"
options="!check" # No tests in qmake build

build() {
	qmake-qt5 -r INSTALL_HEADERS=yes PREFIX=/usr
	make
}

package() {
	make install INSTALL_ROOT="$pkgdir"
}

sha512sums="
73c8fbd8af6c47632317fe33207cc01fcd5cab357372f6322406d6315c1d8d66363aa0849b72a78c2b2fe952ee70e6c98efc5ab8f99ea98bf1c319d346594eae  tiled-1.6.0.tar.gz
232dd1a38e29b34a010978f22b4d3ef0e1344f6a963a50c99cc7dce24a5d2ec9c1f77ff0c08a9528455211a465f7d95c983736c19e5aa2e14b64ee1c094b1fe7  patch-main.cpp.patch
"
